package com.lilinling.common.exception;

/**
 * 10：通用
 * 11：用户
 * 12：制作人
 *
 */

public enum BizCodeEnum {
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式检验失败"),
    TOO_MANY_REQUEST(10002,"流量过大"),
    TOKEN_INVALID_EXCEPTION(14000,"token已失效，请重新登陆"),
    ACCT_NULL_EXCEPTION(11000,"用户不存在"),
    POSSWORD_FAIL_EXCEPTION(11001,"密码不正确"),
    FETCH_USERINFO_EXCEPTION(11002,"解析用户信息失败"),
    NICKNAME_EXSIT_EXCEPTION(11003,"用户名已存在"),
    ACCOUNT_EXSIT_EXCEPTION(11004,"账号已存在"),
    MOBILE_EXSIT_EXCEPTION(11005,"手机号已注册"),
    EMAIL_EXSIT_EXCEPTION(11006,"邮箱已注册"),
    MAKER_EXSIT_EXCEPTION(12000,"已经是制作人"),
    MAKERNAME_EXSIT_EXCEPTION(12001,"制作人名称已存在");

    private int code;
    private  String msg;
    BizCodeEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode(){
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
